package com.javatwo;

import java.util.Scanner;

public class Demo4 {
    //小明做练习题
    /*
    *
    * */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean isflag=true;
        do {
            System.out.println("写十题上机");

            System.out.println("是否合格：");
            String next = scanner.next();
            if(next.equals("合格")){
                isflag=false;
            }
        }while (isflag);
    }
}
